package cn.gjxblog.api;

import cn.gjxblog.common.model.HttpResult;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

;

/**
 * @author gjx
 * @version v1.0
 * @Description
 * @date 2018/12/10 9:03
 */
@FeignClient(value = "common-server")
public interface FileServiceFegin {


    @PostMapping(value = "/file/upload")
    HttpResult upload(@RequestBody byte[] data, @RequestParam("fileName") String fileName);


}
